/**
 * @(#)com.pattern.p_03_decorated.humburger.HumTest
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.pattern.p_03_decorated.humburger;

/**
 * @author fusf
 * @version 1.0  2016/11/7
 */
public class HumTest {

    public static void main(String[] args) {
        ChickenBurger chickenBurger = new ChickenBurger();
        System.out.println(chickenBurger.getName() + "----" + chickenBurger.getPrice());

        Lettuce lettuce = new Lettuce(chickenBurger);
        System.out.println(lettuce.getName() + "----" + lettuce.getPrice());

        Chilli chilli = new Chilli(chickenBurger);
        System.out.println(chilli.getName() + "----" + chilli.getPrice());

        Chilli chilli2 = new Chilli(lettuce);
        System.out.println(chilli2.getName() + "----" + chilli2.getPrice());

    }
}
